import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import '../pages/index/index.scss';

export default class Today extends Component {
  constructor() {
    super(...arguments)
    this.state = {
      
    }
  }

  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  componentDidShow() { }

  componentDidHide() { }

  render() {
    const {data}=this.props;
    return (
      <View className='today'>
        {
          data.map((item,index)=>{
            return (
              <View className='today__item' key={index}>
                {index+1}、{item.date}{item.title}
              </View>
            )
          })
        }
      </View>
    )
  }
}

